package com.example.consumer;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

@RestController
@RequestMapping("/consumer")
@Slf4j
public class ConsumerController {
  @GetMapping("/message")
  String getConsumerMessage(HttpServletRequest request) {
    log.info("request uri: " + request.getRequestURI());
    return "Hello, this is consumer message!";
  }
}
